{% extends 'index.html' %}
{% block content %}
<div class="content">
    <div class="animated fadeIn">
        <div class="row">
            {% for warehouse in warehouse_list %}

            <div class="col-md-4">
                <div class="card">
                    <div class="card-header">
                        <strong class="card-title mb-3">{{ warehouse.w_address }}</strong>

                    </div>
                    <div class="card-body">
                        <div class="mx-auto d-block">
                            <img class="rounded-circle mx-auto d-block" src="/static/images/warehouse.jpg" alt="Card image cap" width="50px" height="50px">
                            <h5 class="text-sm-center mt-2 mb-1">仓库代码：{{ warehouse.warehouse_id }}</h5>
                            <div class="location text-sm-center"><i class="fa fa-cny"></i> {{ warehouse.w_rent_fee }}/月</div>
                        </div>
                        <hr>
                        <div class="card-text text-sm-center">
                            <a href="{% url 'warehouse' %}"><i class="fa fa-cog pr-1"></i>仓库信息</a><br>
                            <a href="{% url 'index' %}"><i class="fa fa-stop pr-1"></i>停用仓库</a>
                        </div>
                    </div>
                </div>
            </div>
            {% endfor %}
        </div>
    </div>
</div>
{% endblock %}